package admin.controllers;

import java.io.IOException;
import java.util.TreeMap;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class MetaHeaderServlet extends HttpServlet{
	public void doGet(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		
		String name = request.getParameter("name");
		TreeMap<String, String> check = new TreeMap<String, String>();
		
		request.setAttribute("name", name);
		request.setAttribute("check", check);
		try {
			request.getRequestDispatcher("/admin/pages/form_meta_header.jsp").forward(request, response);
		} catch (ServletException e) {
			e.printStackTrace();
		}
	}
	
	public void doPost(HttpServletRequest request, HttpServletResponse response)
		throws IOException, ServletException {
		
		TreeMap<String, String> check = new TreeMap<String, String>();
		
		String name = request.getParameter("name");
		
		
		
		request.setAttribute("name", name);
		request.setAttribute("check", check);
		try {
			request.getRequestDispatcher("/admin/pages/form_meta_header.jsp").forward(request, response);
		} catch (ServletException e) {
			e.printStackTrace();
		}
	}
}
